import request from '@/utils/request'

// 查询药物相互作用管理列表
export function listInteraction(query) {
  return request({
    url: '/gene/drug/interaction/listInteraction', method: 'get', params: query
  })
}

// 查询药物相互作用管理列表
export function searchInteractionList(query) {
  return request({
    url: '/gene/drug/interaction/searchInteractionList', method: 'get', params: query
  })
}

// 新增药物相互作用
export function deleteInteraction(data) {
  return request({
    url: '/gene/drug/interaction/delete', method: 'post', data: data
  })
}

// 新增药物相互作用
export function addInteraction(data) {
  return request({
    url: '/gene/drug/interaction/add', method: 'post', data: data
  })
}

// 修改药物相互作用
export function updateInteraction(data) {
  return request({
    url: '/gene/drug/interaction/update', method: 'post', data: data
  })
}

// 新增药物相互作用
export function addDrugsRelation(data) {
  return request({
    url: '/gene/drug/interaction/relation/addDrugs', method: 'post', data: data
  })
}

// 删除药物相互作用
export function deleteRelation(data) {
  return request({
    url: '/gene/drug/interaction/relation/delete', method: 'post', data: data
  })
}

// 药物相互作用list
export function listRelation(data) {
  return request({
    url: '/gene/drug/interaction/relation/list', method: 'post', data: data
  })
}
